<?php
// Calendar includes
echo $javascript->link('jscalendar-1.0/calendar.js');
echo $javascript->link('jscalendar-1.0/lang/calendar-es.js');
echo $javascript->link('common.js');
// CSS Calendar Theme
echo $html->css('../js/jscalendar-1.0/skins/aqua/theme');
?>
<?php echo $html->css('default',NULL,array(),false) ?>
<?php echo $html->css('form_style',NULL,array(),false) ?>
<?php echo $javascript->link('prototype-1.6.0.3.js'); ?>
<div id="columnA">
    <h3>Editar Seguro</h3>
    <?php
    echo 'Los campos marcados con (*) son obligatorios.';
    echo $form->create('Seguro',array('action'=>'editar/'.$form->value('Seguro.id')));
    echo $form->hidden('Seguro.id');
    echo $form->hidden('Seguro.revision_id');
    ?>
    <table>
        <thead>
            <tr>
                <th width="200">*Tipo</th>
                <th width="200">Nombre</th>
                <th width="120">Fecha</th>
                <th width="90">Monto (&#36;)</th>
            </tr>
        </thead>
        <tbody>
            <?php
            echo '<tr>';
            echo '<td>'.$form->input('Seguro.tipo_seg',array('label'=>'','div'=>false,'class'=>'inputstyle input190','type'=>'select','options'=>$segurosTipos)).'</td>';
            echo '<td>'.$form->input('Seguro.nombre_seg',array('label'=>'','div'=>false,'class'=>'inputstyle input190')).'</td>';
            echo '<td>'.$datePicker->picker('Seguro.fch_seg',array('label'=>'','div'=>false,'class'=>'inputstyle input80','id'=>"SeguroFchSeg")).'</td>';
            echo '<td>'.$form->input('Seguro.monto_seg',array('label'=>'','div'=>false,'class'=>'inputstyle input80')).'</td>';
            echo '</tr>';
            echo '<tr>';
            echo '<td colspan="4">'.$form->input('Seguro.observ_seg',array('label'=>'','div'=>false,'class'=>'inputstyle','rows'=>'1')).'</td>';
            echo '</tr>';
            ?>
        </tbody>
    </table>
    <?php
    echo '<br />';
    echo $form->button('Cancelar',array('onclick'=>'javascript:window.location="/sistemaagricola/revisiones/ver/'.$form->value('Seguro.revision_id').'"'));
    echo $form->submit('Guardar',array('div'=>false));
    echo $form->end();
    ?>
</div>